home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_automake.idb / usr / freeware / share / aclocal / init.m4.z / init.m4
Encoding:
M4 Source File  |  1999-07-16  |  1.1 KB  |  33 lines

  1. # Do all the work for Automake.  This macro actually does too much --
  2. # some checks are only needed if your package does certain things.
  3. # But this isn't really a big deal.
  4.  
  5. # serial 1
  6.  
  7. dnl Usage:
  8. dnl AM_INIT_AUTOMAKE(package,version, [no-define])
  9.  
  10. AC_DEFUN(AM_INIT_AUTOMAKE,
  11. [AC_REQUIRE([AC_PROG_INSTALL])
  12. PACKAGE=[$1]
  13. AC_SUBST(PACKAGE)
  14. VERSION=[$2]
  15. AC_SUBST(VERSION)
  16. dnl test to see if srcdir already configured
  17. if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  18.   AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  19. fi
  20. ifelse([$3],,
  21. AC_DEFINE_UNQUOTED(PACKAGE, "$PACKAGE", [Name of package])
  22. AC_DEFINE_UNQUOTED(VERSION, "$VERSION", [Version number of package]))
  23. AC_REQUIRE([AM_SANITY_CHECK])
  24. AC_REQUIRE([AC_ARG_PROGRAM])
  25. dnl FIXME This is truly gross.
  26. missing_dir=`cd $ac_aux_dir && pwd`
  27. AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir)
  28. AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir)
  29. AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir)
  30. AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir)
  31. AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir)
  32. AC_REQUIRE([AC_PROG_MAKE_SET])])
  33.